package vim.meet.start;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;

import vim.meet.business.HaveResultBusiness;
import vim.meet.business.pack.Say;
import vim.meet.config.AspectConfig;

public class AnnotationConfigStart {
	
	public static void main(String[] args) {
		AbstractApplicationContext  context = new AnnotationConfigApplicationContext(AspectConfig.class);
		HaveResultBusiness haveResultBusiness = context.getBean(HaveResultBusiness.class);
		haveResultBusiness.getResult(100);
		Say say = context.getBean(Say.class);
		say.sayChiness("tim");
		say.sayEnglish("tim");
		say.whatSay();
        context.close();
	}

}
